<html>
<head>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
            crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div style="margin-top: 50px;"></div>
            <h2 style="text-align: center">QingScan 漏洞扫描报告</h2>
            <hr/>
            <div>
                <h3>基本信息</h3>
                <p>检测目标名称：{$app_name.name}</p>
                <p>检测目标URL：{$app_name.url}</p>
                <p>报告生成时间：{$app_name.create_time}</p>
            </div>
            <hr/>
            <div>
                <h3>扫描概述</h3>
                <p>本次检测工具：
                    <?php foreach ($project_tools

                    as $value) { ?>
                <td><?php echo $value['tools_name'] ?></td>
                <?php } ?>
                </p>
                <p>探测结果概述：
                    rad(<span style="color: red">{$urls_count}</span>)
                    sqlmap(<span style="color: red">{$urls_sqlmap_count}</span>)
                    nmap(<span style="color: red">{$host_port_count}</span>)
                    主机(<span style="color: red">{$host_count}</span>)
                    crawlergo(<span style="color: red">{$app_crawlergo_count}</span>)
                </p>
            </div>

            <hr/>
            <div>
                <h3>结果详情</h3>
                <h5>Rad 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">方法</th>
                        <th scope="col">url</th>
                        <th scope="col">扫描时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($urls as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                            <td><?php echo $value['method'] ?></td>
                            <td><?php echo $value['url'] ?></td>
                            <td><?php echo $value['sqlmap_scan_time'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>crawlergo 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">方法</th>
                        <th scope="col">url</th>
                        <th scope="col">扫描时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($app_crawlergo as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                            <td><?php echo $value['method'] ?></td>
                            <td><?php echo $value['url'] ?></td>
                            <td><?php echo $value['create_time'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>AWVS 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>nuclei 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">name</th>
                        <th scope="col">host</th>
                        <th scope="col">扫描时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($app_nuclei as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                            <td><?php echo $value['name'] ?></td>
                            <td><?php echo $value['host'] ?></td>
                            <td><?php echo $value['create_time'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>XRAY 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>app信息 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">状态码</th>
                        <th scope="col">标题</th>
                        <th scope="col">header</th>
                        <th scope="col">icon</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($app_info as $value) { ?>
                        <tr>
                            <td><?php echo $value['app_id'] ?></td>
                            <td><?php echo $value['statuscode'] ?></td>
                            <td><?php echo $value['page_title'] ?></td>
                            <td><?php echo $value['header'] ?></td>
                            <td><?php echo $value['icon'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>whatweb 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>sqlmap 扫描结果</h5>
                <table class="table">
                    <slyte>
                    .div{ word-wrap: break-word; word-break: normal;}
                    </slyte>
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">urls_id</th>
                        <th scope="col">漏洞类型</th>
                        <th scope="col">标题</th>
                        <th scope="col" class="div">payload<br/></th>
                        <th scope="col">系统</th>
                        <th scope="col">server</th>
                        <th scope="col">数据库</th>
                        <th scope="col">扫描时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($urls_sqlmap as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                            <td><?php echo $value['urls_id'] ?></td>
                            <td><?php echo $value['type'] ?></td>
                            <td><?php echo $value['title'] ?></td>
                            <td><?php echo $value['payload'] ?></td>
                            <td><?php echo $value['system'] ?></td>
                            <td><?php echo $value['application'] ?></td>
                            <td><?php echo $value['dbms'] ?></td>
                            <td><?php echo $value['create_time'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>oneforall 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>hydra 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>dirmap 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>masscan列表 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">端口</th>
                        <th scope="col">主机</th>
                        <th scope="col">type</th>
                        <th scope="col">服务</th>
                        <th scope="col">扫描时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host_port as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                            <td><?php echo $value['port'] ?></td>
                            <td><?php echo $value['host'] ?></td>
                            <td><?php echo $value['type'] ?></td>
                            <td><?php echo $value['service'] ?></td>
                            <td><?php echo $value['create_time'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>vulmap信息 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>主机列表 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">域名</th>
                        <th scope="col">主机</th>
                        <th scope="col">扫描时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                            <td><?php echo $value['domain'] ?></td>
                            <td><?php echo $value['host'] ?></td>
                            <td><?php echo $value['create_time'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>DisMap 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>

                <h5>自定义插件 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>


                <h5>github关键词监控结果列表 扫描结果</h5>
                <table class="table ">
                    <thead>
                    <tr>
                        <th scope="col">ID</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($host as $value) { ?>
                        <tr>
                            <td><?php echo $value['id'] ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>


            </div>
        </div>
    </div>
</div>
</body>
</html>